package com.devchronicles.interceptor;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
@Interceptor
public class SecurityInterceptor {
@AroundInvoke
public Object doSecurityCheck(InvocationContext context) throws Exception{
// testy bezpieczestwa
Logger.getLogger("SecurityLog").info(context.getMethod().getName()+
"is accessed!");
return context.proceed();
}
}